package com.wnxy.sdd.front.controller;

import com.wnxy.sdd.front.service.ICourseDetailStaticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/course/static")
public class CourseDetailStaticController {

    @Autowired
    private ICourseDetailStaticService courseDetailStaticService;

    @GetMapping
    public String generatorHtml() {
        courseDetailStaticService.generatorHtml();
        return "生成静态页面成功";
    }

}
